{include file="public/header" select="0" /}

<body>
<div class="title bgc">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i>
    添加地址
</div>

<form action="{:url('address/save')}" method="post" class="form layui-form">
    <input type="hidden" name="type" value="{$Request.param.type}"/>
    <ul class="set-form bgc">
        <li>
            收货人 <input type="text" name="nickname" placeholder="请填写收货人" lay-verify="required"
                       lay-reqtext="请填写收货人" lay-verType="tips" autocomplete="off">
        </li>
        <li>
            手机号码 <input type="number" name="tel" placeholder="请填写手机号码" lay-verify="required"
                        lay-reqtext="请填写手机号码" lay-verType="tips" autocomplete="off">
        </li>
        <li style="height: auto">
            <p style="width: 40%">所在地区</p>
            <div class="sunSelect address-select" style="display: block;" data-url="{:url('address/getArea')}" data-value="code" data-name="title">
                <select name="province" data-name="请选择省" data-level="1" data-id="" lay-verify="required"
                        lay-reqtext="请选择省" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="city" data-name="请选择市" data-level="2" data-id="" lay-verify="required"
                        lay-reqtext="请选择市" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="district" data-name="请选择区/县" data-level="3" data-id="" lay-verify="required"
                        lay-reqtext="请选择区/县" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="town" data-name="请选择街道" data-level="4" data-id="" lay-verify="required"
                        lay-reqtext="请选择街道" lay-verType="tips" lay-filter="sunSelect"></select>
            </div>
        </li>
        <li>
            详细地址 <input type="text" name="details" lay-verify="required"
                        lay-reqtext="请填写详细地址" lay-verType="tips"
                        placeholder="请填写详细地址" autocomplete="off">
        </li>
        <li>
            设为默认地址
            <input type="checkbox" name="default" value="1" lay-skin="switch" lay-text="是|否">
        </li>
    </ul>

    <div class="pay-btn" lay-submit lay-filter="save" formObj=".form"><a>确定</a></div>
</form>
</body>
{include file="public/footer" select="0" /}
<script src="/static/admin/js/sunSelect.js"></script>